﻿<UserControl x:Class="AesonXamlControls.Inputs.AesonTextBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid VerticalAlignment="Top" x:Name="LayoutRoot" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" ></ColumnDefinition>
            <ColumnDefinition Width="10*" ></ColumnDefinition>
            <ColumnDefinition Width="Auto" ></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Label Name="lbl" Content="{Binding Desc}"></Label>
        <TextBox MouseDoubleClick="Txb_OnMouseDoubleClick" PreviewKeyDown="Txb_OnKeyDown" IsReadOnly="True" 
                 GotFocus="UIElement_OnGotFocus" LostFocus="UIElement_OnLostFocus" Name="txb" 
                 HorizontalContentAlignment="Left" Margin="3" Grid.Column="1"
                 Text="{Binding Path=Value, Mode=TwoWay}" TextChanged="TextBoxBase_OnTextChanged"  ></TextBox>
        <Button Margin="3" Width="Auto" Grid.Column="2" Name="btnShowErrors" Click="BtnShowErrors_OnClick" >Errors</Button>
    </Grid>
</UserControl>
